package com.juxing.service.userCenter.dao.impl;

import org.springframework.stereotype.Repository;

import com.juxing.service.userCenter.bean.UserBean;
import com.juxing.service.userCenter.dao.IUserDao;

@Repository
public class UserDaoImpl extends AbstractBaseDao implements IUserDao {

	@Override
	public int insert(UserBean user) {
		return this.insert("User.insert", user);
	}

	@Override
	public UserBean queryByUserId(int userId) {
		return this.selectOne("User.queryByUserId", userId);
	}
	
	@Override
	public UserBean queryByNickname(String nickname) {
		return this.selectOne("User.queryByNickname", nickname);
	}

}
